package com.blue.http.config;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
import org.xml.sax.helpers.NamespaceSupport;

/**
 * http自定义命名空间注册处理器
 *
 * @author Jin Zheng
 * @date 2018-10-25
 */
public class HttpNamespaceHandler extends NamespaceHandlerSupport
{
	public HttpNamespaceHandler()
	{
	}

	@Override
	public void init()
	{
		this.registerBeanDefinitionParser("http-config", new HttpConfigParser());
		this.registerBeanDefinitionParser("http-controller", new HttpControllerParser());
		this.registerBeanDefinitionParser("http-server", new HttpServerParser());
		this.registerBeanDefinitionParser("ssl-config", new SSLConfigParser());
		this.registerBeanDefinitionParser("websocket-config", new WebsocketConfigParser());
		this.registerBeanDefinitionParser("websocket-controller", new WebsocketControllerParser());
	}

}
